<?xml version="1.0" encoding="windows-31j" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-31j" />
<title>Insert title here</title>
<script src="|-/js/jquery-1.2.1.js" type="text/javascript"></script>
<script src="|-/js/json.js" type="text/javascript"></script>
<script src="|-/js/testcase.js" type="text/javascript"></script>
<script src="|-/js/common.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
	var a = $("#save");
	$("#save").click(function(){
		console.debug("#save.click");
		var testCase= new Object();
		testCase.precondition = $("#precondition").val();
		testCase.operation = $("#operation").val();
		var paramsvalue= testCase.toJSONString();
		console.debug(paramsvalue);
		$.post('|-/TestCase/saveTestCase.ajax',{
		  params:paramsvalue
		},function(txt){
			var msg = common.fn.msg($("#save"));
			msg.text("Success");
		});
	});
});

</script>
</head>
<body>
<div><span>precondition</span> <input id="precondition"
	type="text" /></div>
<div><span>operation</span> <input id="operation" type="text" /></div>
<div><input type="button" id="save" value="save"></input></div>
</body>
</html>